home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form list_form
- Caption = "List of names"
- ClientHeight = 6240
- ClientLeft = 2835
- ClientTop = 2235
- ClientWidth = 7380
- Height = 6645
- Left = 2775
- LinkTopic = "Form1"
- ScaleHeight = 6240
- ScaleWidth = 7380
- Top = 1890
- Width = 7500
- Begin CommandButton list_ref_but
- Caption = "&Refresh"
- Height = 435
- Left = 4740
- TabIndex = 5
- Top = 5640
- Width = 1875
- End
- Begin CommandButton list_canc_but
- Caption = "&Cancel"
- Height = 435
- Left = 2820
- TabIndex = 2
- Top = 5640
- Width = 1815
- End
- Begin CommandButton list_ok_but
- Caption = "&OK"
- Height = 435
- Left = 900
- TabIndex = 1
- Top = 5640
- Width = 1815
- End
- Begin Grid list_grid
- Height = 4815
- Left = 300
- ScrollBars = 2 'Vertical
- TabIndex = 0
- Top = 600
- Visible = 0 'False
- Width = 6495
- End
- Begin Label Label2
- Caption = "Surname"
- Height = 315
- Left = 3360
- TabIndex = 4
- Top = 180
- Width = 2595
- End
- Begin Label Label1
- Caption = "Forename"
- Height = 315
- Left = 360
- TabIndex = 3
- Top = 180
- Width = 2595
- End
- Sub list_canc_but_Click ()
- list_form.Hide
- ' restore previous current record
- criteria = "recnum = " + Str(curr_rec)
- adr_ds.FindFirst criteria
- upd_fields
- End Sub
- Sub list_ok_but_Click ()
- list_grid.Col = 2
- recstr = list_grid.Text
- If recstr <> "" Then
- criteria = "recnum=cint(" + recstr + ")"
- adr_ds.FindFirst criteria
- If adr_ds.NoMatch Then
- adr_ds.MoveFirst
- End If
- adr_ds.MoveFirst
- End If
- list_form.Hide
- upd_fields
- End Sub
- Sub list_ref_but_Click ()
- upd_list
- End Sub
-